package com.gome.ocean.dao.authority;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import com.gome.ocean.dao.model.authority.ProjectBO;



/**
 * @作者 haqiaolong
 * @创建时间 2016-01-22 16:59:38
 * @版本 1.00
 * @修改记录
 */
@Repository("projectDAO")
public interface ProjectDAO {

    int insertProject(ProjectBO project);
    
    int removeProjectById(Long id);
    
    int updateProject(ProjectBO project);
    
    ProjectBO findProjectById(Long id);

    List<ProjectBO> findAllProjects(RowBounds rowBounds);

    ProjectBO findProjectByName(@Param("projectName")String projectName);

    List<ProjectBO> findProjectByUser(@Param("userEmail")String userEmail);
    
    List<ProjectBO> getAllProjects();
    
    List<ProjectBO> findProjectByCurrentEmail(@Param("currentEmail") String currentEmail);

    List<ProjectBO> findProjectByNames(List<String> projectNames);
}